function formatData(time) {
  let timestamp = new Date(Number(time));
  return (
    timestamp.toLocaleDateString().replace(/\//g, '-') + ' ' + timestamp.toTimeString().substr(0, 8)
  );
}

exports.formatData = formatData;
